<script setup lang="ts">
import {createRouter as $router} from "vue-router";
</script>

<template>
  <div>
    <!--ElementPlus组件-->
    <el-col>
      <el-result icon="error" title="404" sub-title="页面未找到">
        <template #extra>
          <router-link to="/">
            <el-button type="primary" @click="$router.push('/')">返回首页</el-button>
          </router-link>
        </template>
      </el-result>
    </el-col>
  </div>
</template>
